package com.example.androidmainshixun.entity;

public class Moment {
    private String username;
    private String postTime;
    private String content;
    private int imageResId; // 新增图片资源ID

    public Moment(String username, String postTime, String content, int imageResId) {
        this.username = username;
        this.postTime = postTime;
        this.content = content;
        this.imageResId = imageResId; // 初始化图片资源ID
    }

    public String getUsername() {
        return username;
    }

    public String getPostTime() {
        return postTime;
    }

    public String getContent() {
        return content;
    }

    public int getImageResId() {
        return imageResId; // 获取图片资源ID
    }
}